<?php


namespace Xiaoguai\DesignPattern\DP015;


class Product
{
    protected $partA = '';
    protected $partB = '';
    protected $partC = '';

    /**
     * @param string $partA
     */
    public function setPartA(string $partA): void
    {
        $this->partA = $partA;
    }

    /**
     * @param string $partB
     */
    public function setPartB(string $partB): void
    {
        $this->partB = $partB;
    }

    /**
     * @param string $partC
     */
    public function setPartC(string $partC): void
    {
        $this->partC = $partC;
    }

    /**
     * @return string
     */
    public function show(): string
    {
        return implode(';', [
            $this->partA,
            $this->partB,
            $this->partC,
        ]);
    }
}